package com.xuecheng.manage_cms.service;

import com.xuecheng.framework.domain.system.SysDictionary;
import com.xuecheng.manage_cms.dao.SysDictionaryDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zhaoxiang
 * @version 1.0
 * @Date 2019/10/31 11:17
 */
@Service
public class SysDictionaryService {

    @Autowired
    private SysDictionaryDao sysDictionaryDao;

    /**
     * 查询课程等级信息
     * @param dType
     * @return
     */
    public SysDictionary findDictionaryByDtype(String dType){
        return sysDictionaryDao.findDistinctByDType(dType);
    }
}
